.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  gap: 1rem;
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.headerLeft {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.viewToggle {
  display: flex;
  gap: 0.5rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.25rem;
}

.toggleButton {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggleButton:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--color-text);
}

.toggleButton.active {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.button {
  padding: 0.5rem 1.25rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.button:hover:not(:disabled) {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Action Buttons */
.addButton {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.addButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.cardActions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.editButton,
.deleteButton {
  padding: 0.4rem 0.6rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.editButton {
  color: var(--color-primary);
}

.editButton:hover {
  background-color: rgba(99, 102, 241, 0.1);
  transform: scale(1.1);
}

.deleteButton {
  color: #ef4444;
}

.deleteButton:hover {
  background-color: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

.sectionEditButton {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.sectionEditButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

/* Main content area */
.content {
  flex: 1;
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Content area for sections */
.contentArea {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 1rem;
}

.sectionPanel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.observabilityInfo {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.observabilityInfo p {
  margin: 0.5rem 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.observabilityInfo code {
  padding: 0.25rem 0.5rem;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 0.85rem;
}

.observabilityInfo strong {
  color: var(--color-text);
}

/* Make Categories section span all columns when in full view */
.categoriesSection {
  grid-column: 1 / -1;
}

/* Responsive layout */
@media (max-width: 1199px) {
  .mainLayout {
    flex-direction: column;
  }
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--color-text-secondary);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-lg);
  color: var(--color-danger);
  margin: 1rem;
}

.errorIcon {
  font-size: 1.5rem;
  line-height: 1;
}

.error h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.error p {
  margin: 0;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.codeBlock {
  margin: 1rem;
  padding: 1.5rem;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text);
}

.codeBlock code {
  display: block;
}

/* Toggle Visibility Button for Address Masking */
.toggleVisibilityButton {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.toggleVisibilityButton:hover {
  opacity: 1;
}

/* Pricing Display Styles */
.pricingContainer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pricingItem {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.pricingLabel {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.pricingValue {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.pricingUnit {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
}

.pricingDivider {
  color: var(--color-border);
  font-weight: 300;
}

/* Section Styles */
.section {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sectionHeader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.sectionIcon {
  font-size: 1.5rem;
  line-height: 1;
}

.sectionTitle {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
  flex: 1;
}

.sectionContent {
  padding: 1.25rem;
  flex: 1;
}

/* Config Row */
.configRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.configRow:last-child {
  border-bottom: none;
}

.configLabel {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.configValue {
  font-size: 0.875rem;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badgelow {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.badgemedium {
  background-color: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.badgehigh {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.badgedevelopment {
  background-color: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.badgeproduction {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.badgetesting {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.statusActive {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.statusInactive {
  background-color: rgba(156, 163, 175, 0.1);
  color: #6b7280;
}

/* Endpoint Card - Unified with Model Card structure */
.endpointCard {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.875rem;
  transition: all var(--transition-fast);
}

.endpointCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.endpointCard:last-child {
  margin-bottom: 0;
}

.endpointHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.875rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-bottom: 1px solid var(--color-border);
}

.endpointName {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.endpointDetails {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem;
}

.endpointDetails .configRow {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.endpointDetails .configRow:last-child {
  border-bottom: none;
}

.endpointDetails .configLabel {
  min-width: 100px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.endpointDetails .configValue {
  font-size: 0.8rem;
}

.modelTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modelTag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Model Card */
.modelCard {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.875rem;
  transition: all var(--transition-fast);
}

.modelCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.modelCard:last-child {
  margin-bottom: 0;
}

.modelCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.875rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-bottom: 1px solid var(--color-border);
}

.modelCardTitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modelCardBody {
  padding: 0.875rem;
}

/* Core Settings Inline */
.coreSettingsInline {
  display: flex;
  gap: 2rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.inlineConfigRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inlineConfigLabel {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.inlineConfigValue {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-mono);
  padding: 0.25rem 0.75rem;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
}

/* Category Grid - Two Column Layout */
.categoryGridTwoColumn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Single column on smaller screens */
@media (max-width: 1200px) {
  .categoryGridTwoColumn {
    grid-template-columns: 1fr;
  }
}

/* Legacy category grid (keep for backward compatibility) */
.categoryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* 4 columns on extra large screens */
@media (min-width: 1800px) {
  .categoryGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 3 columns on large screens */
@media (min-width: 1400px) and (max-width: 1799px) {
  .categoryGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 columns on medium screens */
@media (min-width: 900px) and (max-width: 1399px) {
  .categoryGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.categoryCard {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.categoryCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.categoryHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.categoryName {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: capitalize;
}

.reasoningBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reasoninglow {
  background-color: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.reasoningmedium {
  background-color: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.reasoninghigh {
  background-color: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.categoryDescription {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  min-height: 2.4em;
}

.categoryModels {
  background-color: rgba(99, 102, 241, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.categoryModelsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.addModelButton {
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.addModelButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.modelScoreRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.modelScoreRow:hover {
  background-color: rgba(99, 102, 241, 0.05);
}

.modelScoreRow:last-child {
  margin-bottom: 0;
}

.modelScoreName {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-mono);
  min-width: 80px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.reasoningIcon {
  font-size: 0.8rem;
}

.scoreBar {
  flex: 1;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.scoreBarFill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, rgba(139, 92, 246, 0.8) 100%);
  transition: width 0.3s ease;
  border-radius: var(--radius-sm);
}

.scoreText {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.modelScoreActions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.emptyModelScores {
  padding: 1rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-style: italic;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
}

/* Feature Card */
.featureCard {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.featureCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.featureCard:last-child {
  margin-bottom: 0;
}

.featureHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-bottom: 1px solid var(--color-border);
}

.featureTitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.featureBody {
  padding: 1rem 1.25rem;
}

/* Model Config List - Changed from Grid to List for better scalability */
.modelConfigGrid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.modelConfigCard {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.modelConfigCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.modelConfigCard:last-child {
  margin-bottom: 0;
}

.modelConfigHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.875rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-bottom: 1px solid var(--color-border);
}

.modelConfigName {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.modelConfigBody {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modelConfigBody .configRow {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.modelConfigBody .configRow:last-child {
  border-bottom: none;
}

.modelConfigBody .configLabel {
  min-width: 160px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.modelConfigBody .configValue {
  font-size: 0.8rem;
}

.endpointTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.endpointTag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.piiTypesTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.piiTypeTag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: #ef4444;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badgeInfo {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

/* Reasoning Families Grid */
.reasoningFamiliesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.reasoningFamilyCard {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.reasoningFamilyCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.reasoningFamilyHeader {
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border-bottom: 1px solid var(--color-border);
}

.reasoningFamilyName {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reasoningFamilyBody {
  padding: 1rem 1.25rem;
}

/* Empty State */
.emptyState {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  font-style: italic;
}

/* Loading and Error States */
.loadingState {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.errorState {
  padding: 1.5rem;
  text-align: center;
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* System Prompt Section */
.systemPromptSection {
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
}

.systemPromptLabel {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.systemPromptText {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Tools Grid - Maximum 3 columns */
.toolsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Responsive: 2 columns on medium screens */
@media (max-width: 1400px) {
  .toolsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 column on small screens */
@media (max-width: 900px) {
  .toolsGrid {
    grid-template-columns: 1fr;
  }
}

.toolCard {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.toolCard:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.toolHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.toolName {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: 'Courier New', monospace;
}

.toolDescription {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.toolFunctionDescription {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.toolFunctionDescription strong {
  color: var(--color-primary);
  font-weight: 600;
}

.toolSimilarityDescription {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-left: 3px solid rgba(139, 92, 246, 0.5);
  border-radius: var(--radius-sm);
}

.similarityDescriptionLabel {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(139, 92, 246, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.similarityDescriptionText {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  font-style: italic;
}

.toolParameters {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.toolParametersHeader {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.toolParameter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.4rem;
  background-color: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.toolParameter > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parameterName {
  font-family: 'Courier New', monospace;
  color: var(--color-text);
  font-weight: 500;
}

.requiredBadge {
  color: #ef4444;
  font-weight: 700;
  margin-left: 0.25rem;
}

.parameterType {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  background-color: rgba(139, 92, 246, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
}

.parameterDescription {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-top: 0.25rem;
  font-style: italic;
}

.toolTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.toolTag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}